

package com.hazelcast.cluster;

import com.hazelcast.client.Client;

import java.net.SocketAddress;
import java.util.UUID;

/**
 * Endpoint represents a peer in the cluster.
 * It can be either a member or a client.
 *
 * @see Member
 * @see Client
 */
public interface Endpoint {

    /**
     * Returns the UUID of this endpoint
     *
     * @return the UUID of this endpoint
     */
    UUID getUuid();

    /**
     * Returns the socket address for this endpoint.
     *
     * @return the socket address for this endpoint
     */
    SocketAddress getSocketAddress();

}
